<?php 
class articlesComponents extends  sfComponents
{
	public function executeBytag()
	{
		$this->articles = Article::getByTags($this->tags,$this->id, $this->limit);
	}

	public function executeLast_articles()
	{
		$howmuch = isset($this->howmuch) ? $this->howmuch : 5; 
		$this->articles = Article::getLastArticles($howmuch);
		$this->articles_ukr = Article::getLastArticlesUkr($howmuch);
	}
}
?>